package com.atguigu.eduService.service;

import com.atguigu.eduService.entity.EduTeacher;
import com.atguigu.eduService.vo.TeacherQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author Chen Wen bo
 * @since 2021-07-09
 */
public interface EduTeacherService extends IService<EduTeacher> {

    List<EduTeacher> findAllTeacher();

    void deleteTeacherById(String id);

    IPage<EduTeacher> selectTeacherPage(Long current, Long size);

    IPage<EduTeacher> selectTeacherPageCondition(Long current, Long size, TeacherQueryVo teacherQueryVo);

    void addTeacher(EduTeacher eduTeacher);

    EduTeacher getTeacherById(String id);

    void updateTeacher(EduTeacher eduTeacher);

    Map<String,Object> getTeacherFrontList(Long page, Long limit);
}
